package cn.ibizlab.businesscentral.core.odoo_sale.client;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.*;
import cn.ibizlab.businesscentral.core.odoo_sale.domain.Sale_order_template_line;
import cn.ibizlab.businesscentral.core.odoo_sale.filter.Sale_order_template_lineSearchContext;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * 实体[sale_order_template_line] 服务对象接口
 */
@FeignClient(value = "${ibiz.ref.service.odoo-sale:odoo-sale}", contextId = "sale-order-template-line", fallback = sale_order_template_lineFallback.class)
public interface sale_order_template_lineFeignClient {


    @RequestMapping(method = RequestMethod.PUT, value = "/sale_order_template_lines/{id}")
    Sale_order_template_line update(@PathVariable("id") Long id,@RequestBody Sale_order_template_line sale_order_template_line);

    @RequestMapping(method = RequestMethod.PUT, value = "/sale_order_template_lines/batch")
    Boolean updateBatch(@RequestBody List<Sale_order_template_line> sale_order_template_lines);



    @RequestMapping(method = RequestMethod.POST, value = "/sale_order_template_lines/search")
    Page<Sale_order_template_line> search(@RequestBody Sale_order_template_lineSearchContext context);


    @RequestMapping(method = RequestMethod.GET, value = "/sale_order_template_lines/{id}")
    Sale_order_template_line get(@PathVariable("id") Long id);


    @RequestMapping(method = RequestMethod.POST, value = "/sale_order_template_lines")
    Sale_order_template_line create(@RequestBody Sale_order_template_line sale_order_template_line);

    @RequestMapping(method = RequestMethod.POST, value = "/sale_order_template_lines/batch")
    Boolean createBatch(@RequestBody List<Sale_order_template_line> sale_order_template_lines);




    @RequestMapping(method = RequestMethod.DELETE, value = "/sale_order_template_lines/{id}")
    Boolean remove(@PathVariable("id") Long id);

    @RequestMapping(method = RequestMethod.DELETE, value = "/sale_order_template_lines/batch}")
    Boolean removeBatch(@RequestBody Collection<Long> idList);


    @RequestMapping(method = RequestMethod.GET, value = "/sale_order_template_lines/select")
    Page<Sale_order_template_line> select();


    @RequestMapping(method = RequestMethod.GET, value = "/sale_order_template_lines/getdraft")
    Sale_order_template_line getDraft();


    @RequestMapping(method = RequestMethod.POST, value = "/sale_order_template_lines/checkkey")
    Boolean checkKey(@RequestBody Sale_order_template_line sale_order_template_line);


    @RequestMapping(method = RequestMethod.POST, value = "/sale_order_template_lines/save")
    Boolean save(@RequestBody Sale_order_template_line sale_order_template_line);

    @RequestMapping(method = RequestMethod.POST, value = "/sale_order_template_lines/savebatch")
    Boolean saveBatch(@RequestBody List<Sale_order_template_line> sale_order_template_lines);



    @RequestMapping(method = RequestMethod.POST, value = "/sale_order_template_lines/searchdefault")
    Page<Sale_order_template_line> searchDefault(@RequestBody Sale_order_template_lineSearchContext context);


}
